import g

"""
获取英雄数据
"""


def getApiData():
    """
    统一定义参数类型！！不定义会报错
    """
    return [
        {"var": "tid", "type": "string", "desc": "英雄tid"},
    ]


async def proc(uid, gateway_url, data, *args, **kwargs):
    _res = {
        "s": 1
    }

    tid = data.uid

    _res["d"] = {
        "heroinfo": await g.Model.Hero.getInfo(tid)
    }

    return _res


if __name__ == '__main__':
    proc(1, 2, 3)
